#ifndef GLOBALVAI_H
#define GLOBALVAI_H
/*
*******************************************************************************
* ansi c source code
* file name:
*	 GlobalVai.h
* abstract:
*	to define global variable used by TX and RX...
* reference:
* 
* author:Fangming He
*******************************************************************************
*/


/*
********************************************************************************
* 		                    function declaration
********************************************************************************
*/
/* the ratio of  signal to noise */
double SNR;
/* the modulator type 0-QPSK ,1-16QAm*/
int M_Type;
/* the OFDM sub_carrier number */
int FFT_Size;
/* the cylic prefix corresponding FFT_Size */
int CP_Length;
/* to indicate the start of the Frame */
int TrainFlag;          
/* to indicate the symbolindex in the slot for sync */
int SymbolIndex;
/* to store Pilot_PN */
int *Pilot_PN;
/* to indicate start sample */
int StartIndex;
/* to indicate freqency offset */
double Offset_Esti;
/* to store the twiddle factor for FFT and IFFT*/
struct Complex *twiddle;
/* to store ofdm symbol being transmitted */
struct Complex *Symbol;
/* to store the difference between two symbol on even frequency */
struct Complex *PN_Diff;
/* to store two training symbols in the receiver to perform synchronization */
struct Complex *Symbol2;
/* to store the ISI between adjamecent ofdm symbol */
struct Complex ISI[MaxDelay];

#endif